package com.huli.service.impl;

import com.huli.domain.OrderInfo;
import com.huli.mapper.OrderInfoMapper;
import com.huli.mapper.OrderInfoMapper1;
import com.huli.pojo.NursingProject;
import com.huli.pojo.Patient;
import com.huli.service.OrderInfoService1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;
@Service
public class OrderInfoService1Impl implements OrderInfoService1 {

    @Autowired
    OrderInfoMapper1 orderInfoMapper1;
    @Override
    public List<OrderInfo> getOrderInfoPatientListNotOk1() {
        return orderInfoMapper1.getOrderInfoPatientListNotOk1();
    }

    @Override
    public NursingProject getProjectID(Integer id) {
        return orderInfoMapper1.getProjectID(id);
    }

    @Override
    public Patient getPtientID(Integer id) {
        return orderInfoMapper1.getPtientID(id);
    }

    @Override
    public int getVerificationCode(Integer id, String appointmentCode) {
        orderInfoMapper1.getVerificationCode(id, appointmentCode);
        return 1;
    }

    @Override
    public Integer updateOrderStatus(Integer id, Integer status) {
        Integer i = orderInfoMapper1.updateOrderStatus(id, status);
        return i;
    }

    @Override
    public String getAddressID(Integer id) {
        return orderInfoMapper1.getAddressID(id);
    }

    @Override
    public List<OrderInfo> getOrderInfoPatientListOk1() {
        List<OrderInfo>list= orderInfoMapper1.getOrderInfoPatientListOk1();
        return list;
    }

    @Override
    public List<OrderInfo> getOrderInfoPatientListWait1() {
        List<OrderInfo>list= orderInfoMapper1.getOrderInfoPatientListWait1();
        return list;
    }

    @Override
    public List<OrderInfo> getOrderInfoPatientListNotOk(String messageStayus ) {
        List<OrderInfo> orderInfoPatientListNotOk = orderInfoMapper1.getOrderInfoPatientListNotOk(messageStayus);
        return orderInfoPatientListNotOk;
    }

    @Override
    public List<OrderInfo> getOrderInfoPatientListToOk(String messageStayus) {
        List<OrderInfo> orderInfoPatientListToOk = orderInfoMapper1.orderInfoPatientListToOk(messageStayus);
        return orderInfoPatientListToOk;
    }

    @Override
    public String getNurseID(Integer id) {
        return orderInfoMapper1.getNurseID(id);
    }

    @Override
    public Integer updateOrderStatus1(Integer id) {
        return orderInfoMapper1.updateOrderStatus1(id);
    }

    @Override
    public List<OrderInfo> getOrderInfoList() {
        return orderInfoMapper1.getOrderInfoList();
    }

    @Override
    public List<OrderInfo> getOrderInfoPatientListService1() {
        return orderInfoMapper1.getOrderInfoPatientListService1();
    }

    @Override
    public List<OrderInfo> getOrderInfoPatientListWaitService1() {
        return orderInfoMapper1.getOrderInfoPatientListWaitService1();
    }

    @Override
    public List<OrderInfo> getOrderInfoPatientListCancel1() {
        return orderInfoMapper1.getOrderInfoPatientListCancel1();
    }

    @Override
    public Integer getOrderInfoPatientListToOkCount() {
        return orderInfoMapper1.getOrderInfoPatientListToOkCount();
    }
}
